<template>
    <div>
        <mt-header :title="title" class="header">
            <div @click="goBack" :slot="showBackBtn=='true'?'left':''  ">
                <mt-button icon="back"></mt-button>
            </div>
        </mt-header>
    </div>
</template>

<script>
    export default {
        name: "myheader",
        props: {
            title: {
                type: String,
                default: 'e安全'
            },
            showBackBtn: {
                type: String,
                default: "true"
            }
        },
        methods: {
            goBack(){
                this.$router.go(-1)
            }
        }
    };
</script>
<style rel="stylesheet/scss" lang="scss">
    .header {
        background: #555;
        color: #eee;
    }

</style>

